#ifndef HOME_H
#define HOME_H

#define KEY1 HAL_GPIO_ReadPin(KEY_1_GPIO_Port, KEY_1_Pin) == GPIO_PIN_SET
#define KEY2 HAL_GPIO_ReadPin(KEY_2_GPIO_Port, KEY_2_Pin) == GPIO_PIN_SET

#include <stdint.h>

enum HOMESTATE{
    LEDMODE,
    MOTORMODE,
    HOME
};

struct motorstate{
    enum METHOD{MOFF,SPEED,ANGLE} method;
    enum WAY{WOFF,STICK,IMU} way;
};

struct ledstate
{
    int L1;
    int L2;
    char L3;
    int L4;
};

void ShowHome(void);
void ShowLed(void);
void ShowMotor(void);
void ShowWay(void);
uint16_t L2_time(void);




#endif // !HOME_H;